package InheritanceAndPolymorphism.demo03;

public class Test {
    public static void main(String[] args) {
        Official official = new Official("123456789012345678", "张三", "1990-01-01", "本科", "公务员", "中共党员", "局长");

        System.out.println("身份证号: " + official.getIdNumber());
        System.out.println("姓名: " + official.getName());
        System.out.println("出生日期: " + official.getBirthDate());
        System.out.println("学历: " + official.getEducation());
        System.out.println("职业: " + official.getOccupation());
        System.out.println("党派: " + official.getPoliticalParty());
        System.out.println("职务: " + official.getPosition());
    }
}
